﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Castle.MicroKernel.Registration;
using Castle.Windsor;
using Castle.MicroKernel.SubSystems.Configuration;
using CHPM.IC.Logger;
using CHPM.IC.ObjectMapper;


namespace CHPM.PL.DesktopUI.Code.WindsorInstaller
{
    public class ToolInstaller : IWindsorInstaller
    {
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container.Register
            (
                Component.For<ILogger>().ImplementedBy<Log4netLogger>().LifeStyle.Transient,
                Component.For<IObjectMapper>().ImplementedBy<EmitObjectMapper>().LifeStyle.Transient
            );
        }
    }
}